import request from '@/utils/request'

// 查询员工请假表列表
export function listRest(query) {
  return request({
    url: '/rest/rest/list',
    method: 'get',
    params: query
  })
}

// 查询员工请假表详细
export function getRest(id) {
  return request({
    url: '/rest/rest/' + id,
    method: 'get'
  })
}

// 新增员工请假表
export function addRest(data) {
  return request({
    url: '/rest/rest',
    method: 'post',
    data: data
  })
}

// 修改员工请假表
export function updateRest(data) {
  return request({
    url: '/rest/rest',
    method: 'put',
    data: data
  })
}
//得到有多少工号
export function getEmployeeTree() {
  return request({
    url: '/rest/rest/tree',
    method: 'get'
  })
}



// 删除员工请假表
export function delRest(id) {
  return request({
    url: '/rest/rest/' + id,
    method: 'delete'
  })
}
